﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.Windows.Forms;

namespace Twin
{
    public class ConfigIO
    {
        public static readonly string ApplicationFilePath = Application.ExecutablePath;
        public static readonly string TrueFileDir = Path.GetDirectoryName(ApplicationFilePath);
        public static readonly string SensorMonitor_ini = TrueFileDir + "\\twin_console.ini";

        //public static readonly string SensorMonitor_ini = TrueFileDir + "\\SensorMonitor.ini";
        //public static readonly string LinkDataPath = TrueFileDir + "\\linkdata.ini";
        //public static readonly string FieldsPath = TrueFileDir + "\\fields.ini";
        //public static readonly string OpenFilePath = OperateIniFile.ReadIniData("version", "OpenFilepath", "", ConfigIO.XTools_ini);
        //public static readonly string StationsPath = OpenFilePath + "\\stations.ini";
        //public static readonly string currentVersion = OperateIniFile.ReadIniData("version", "openTableVersion", "", ConfigIO.XTools_ini);
        //public static void ProcessStart(string str)
        /*{
            try
            {
                Process.Start(str);
            }
            catch (Exception)
            {
                MessageBox.Show("启动失败，请检查您是否安装该软件！");
            }
        }*/
    }
}